package com.ruoyi.apm.service.impl;

import com.ruoyi.apm.dao.DockDataConfigMapper;
import com.ruoyi.apm.model.DockDataConfig;
import com.ruoyi.apm.service.DockDataConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: youguoen
 * Date: 2023/12/28
 */
@Service
public class DockDataConfigServiceImpl implements DockDataConfigService {

    @Autowired
    private DockDataConfigMapper dockDataConfigMapper;

    @Override
    public void insert(DockDataConfig dockDataConfig) {
        dockDataConfigMapper.insert(dockDataConfig);
    }

    @Override
    public void update(DockDataConfig dockDataConfig) {
        dockDataConfigMapper.update(dockDataConfig);
    }

    @Override
    public List<DockDataConfig> selectAll() {
        return dockDataConfigMapper.selectAll();
    }

    @Override
    public DockDataConfig getByGuid(String guid) {
        return dockDataConfigMapper.getByGuid(guid);
    }

    @Override
    public Map<String, String> getFormatDate(String format, String unit, Integer step) {
        return dockDataConfigMapper.getFormatDate(format,unit,step);
    }
}
